package com.mimaxueyuan.disruptor.demo07;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ScheduledFuture;

public class LongEvent {
	private int currentState;
	private int prevState;
	private Map<String, ScheduledFuture> threadMap= new HashMap<>();
	private long value;

	public void set(long value) {
		this.value = value;
	}

	public int getCurrentState() {
		return currentState;
	}

	public void setCurrentState(int currentState) {
		this.currentState = currentState;
	}

	public int getPrevState() {
		return prevState;
	}

	public void setPrevState(int prevState) {
		this.prevState = prevState;
	}

	public long getValue() {
		return value;
	}

	public void setValue(long value) {
		this.value = value;
	}

	public Map<String, ScheduledFuture> getThreadMap() {
		return threadMap;
	}

	public void setThreadMap(Map<String, ScheduledFuture> threadMap) {
		this.threadMap = threadMap;
	}

	@Override
	public String toString() {
		return "LongEvent{" +
				"currentState=" + currentState +
				", prevState=" + prevState +
				", threadMap=" + threadMap +
				", value=" + value +
				'}';
	}
}
